package org.project.choujiang.mapper;

import org.project.choujiang.pojo.domain.Activity;
import org.project.choujiang.pojo.domain.DrawingCardRecord;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface DrawingCardRecordRepository extends MongoRepository<DrawingCardRecord,String> {
    void deleteAllByActivityId(String activityId);

    List<DrawingCardRecord> findAllByActivityIdOrderByCreateDateDesc(String activityId);
}
